Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Camera Range

Labels

ASCII
CameraRange
Binary
cmrg ( = 0x636D7267 )

Data Format

Float32             hither
Float32             yon
hither
The distance from the location of the parent camera to the near clipping plane. The value in this field should be greater than 0.
yon
The distance from the location of the parent camera to the far clipping plane. The value in this field should be greater than the value in the hither field.

Data Size

8

Description

A camera range object is used to set the near and far clipping planes of its parent camera. Distances are measured in the direction defined by the camera vector, which is normal to both clipping planes.

Parent Hierarchy

Data.

Parent Objects

View angle aspect camera, view plane camera, orthographic camera. A camera placement object always has a parent object.

Child Objects

None.

Example

Container (
    ViewPlaneCamera ( ... )
    CameraPlacement ( ... )
    CameraRange (
        .01                                 # hither
        75                                  # yon
    )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |